package org.jeecg.modules.erp.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.erp.base.entity.ErpGoodsIngredientsReplace;
import org.jeecg.modules.erp.base.entity.ErpGoodsIngredientsReplaceInfo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 原料代替品管理
 * @Author: jeecg-boot
 * @Date:   2024-05-24
 * @Version: V1.0
 */
public interface IErpGoodsIngredientsReplaceService extends IService<ErpGoodsIngredientsReplace> {

	/**
	 * 添加一对多
	 *
	 * @param erpGoodsIngredientsReplace
	 * @param erpGoodsIngredientsReplaceInfoList
	 */
	public void saveMain(ErpGoodsIngredientsReplace erpGoodsIngredientsReplace,List<ErpGoodsIngredientsReplaceInfo> erpGoodsIngredientsReplaceInfoList) ;
	
	/**
	 * 修改一对多
	 *
   * @param erpGoodsIngredientsReplace
   * @param erpGoodsIngredientsReplaceInfoList
	 */
	public void updateMain(ErpGoodsIngredientsReplace erpGoodsIngredientsReplace,List<ErpGoodsIngredientsReplaceInfo> erpGoodsIngredientsReplaceInfoList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
